package it.webrules.deploymanager.core.st.scm;

import java.util.Date;

public class Info {

	public String path;
	public String repourl;
	public String repo;
	public Long revision;
	public Date lastchange;
	public String lastauthor;
	public Type type;
	public String name;

	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("SCM Info:\n");
		builder.append("Path:\t\t" + path + "\n");
		builder.append("Repository URL:\t" + repourl + "\n");
		builder.append("Repository:\t" + repo + "\n");
		builder.append("Revision:\t" + revision + "\n");
		builder.append("Last change:\t" + lastchange + "\n");
		builder.append("Last autor:\t" + lastauthor + "\n");
		builder.append("Type:\t\t" + type + "\n");

		if (name != null)
			builder.append("Name:\t\t" + name + "\n");

		return builder.toString();

	}
}
